package com.ruoyi.easyfame.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 tb_order
 * 
 * @author xhb
 * @date 2025-08-18
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID（自增主键） */
    private Long id;

    /** 用户ID（关联用户表） */
    private Long userId;

    /** 归属方（如部门、区域等） */
    @Excel(name = "归属方", readConverterExp = "如=部门、区域等")
    private String belong;

    /** 目的地 */
    @Excel(name = "目的地")
    private String destination;

    /** 数量（订单商品/服务数量） */
    @Excel(name = "数量", readConverterExp = "订=单商品/服务数量")
    private Long number;

    /** 删除标志（0-未删除，1-已删除） */
    private Long delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setBelong(String belong) 
    {
        this.belong = belong;
    }

    public String getBelong() 
    {
        return belong;
    }

    public void setDestination(String destination) 
    {
        this.destination = destination;
    }

    public String getDestination() 
    {
        return destination;
    }

    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("belong", getBelong())
            .append("destination", getDestination())
            .append("number", getNumber())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
